<template>
  <div>
    <!-- 二级路由出口 -->
    <keep-alive>
      <router-view v-if="$route.meta.keepAlive"></router-view>
    </keep-alive>
    <router-view v-if="!$route.meta.keepAlive"></router-view>
    <van-tabbar route v-model="active">
      <van-tabbar-item icon="home-o" to="/homepage">首页</van-tabbar-item>
      <van-tabbar-item icon="apps-o" to="/find">发现</van-tabbar-item>
      <van-tabbar-item icon="paid" to="/receiver">收音机</van-tabbar-item>
      <!-- <van-tabbar-item icon="user-circle-o">我的</van-tabbar-item> -->
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: "pageIndex",
  data() {
    return {
      active: 0,
    };
  },
};
</script>

<style lang="less" scoped>
</style>